<?

class graphDeviceIpStatistics extends graphBase {
	protected $rrdFile = 'netstats_ip.rrd';
	protected function getOptions() {
		return array(
			'DEF:ipForwDatagrams='.$this->rrdPath.':ForwDatagrams:AVERAGE',
			'DEF:ipInDelivers='.$this->rrdPath.':InDelivers:AVERAGE',
			'DEF:ipInReceives='.$this->rrdPath.':InReceives:AVERAGE',
			'DEF:ipOutRequests='.$this->rrdPath.':OutRequests:AVERAGE',
			'DEF:ipInDiscards='.$this->rrdPath.':InDiscards:AVERAGE',
			'DEF:ipOutDiscards='.$this->rrdPath.':OutDiscards:AVERAGE',
			'DEF:ipOutNoRoutes='.$this->rrdPath.':InDiscards:AVERAGE',
			'LINE1.25:ipOutNoRoutes#660000:OutNoRoutes','GPRINT:ipOutNoRoutes:LAST:%6.2lf%s','GPRINT:ipOutNoRoutes:AVERAGE: %6.2lf%s','GPRINT:ipOutNoRoutes:MAX: %6.2lf%s\n',
			'LINE1.25:ipOutDiscards#330033:OutDiscards','GPRINT:ipOutDiscards:LAST:%6.2lf%s','GPRINT:ipOutDiscards:AVERAGE: %6.2lf%s','GPRINT:ipOutDiscards:MAX: %6.2lf%s\n',
			'LINE1.25:ipInDiscards#cccc00:InDiscards ','GPRINT:ipInDiscards:LAST:%6.2lf%s','GPRINT:ipInDiscards:AVERAGE: %6.2lf%s','GPRINT:ipInDiscards:MAX: %6.2lf%s\n',
			'LINE1.25:ipOutRequests#0000cc:OutRequests','GPRINT:ipOutRequests:LAST:%6.2lf%s','GPRINT:ipOutRequests:AVERAGE: %6.2lf%s','GPRINT:ipOutRequests:MAX: %6.2lf%s\n',
			'LINE1.25:ipInReceives#006600:InReceives ','GPRINT:ipInReceives:LAST:%6.2lf%s','GPRINT:ipInReceives:AVERAGE: %6.2lf%s','GPRINT:ipInReceives:MAX: %6.2lf%s\n',
			'LINE1.25:ipInDelivers#00cc00:InDelivers ','GPRINT:ipInDelivers:LAST:%6.2lf%s','GPRINT:ipInDelivers:AVERAGE: %6.2lf%s','GPRINT:ipInDelivers:MAX: %6.2lf%s\n',
			'LINE1.25:ipForwDatagrams#cc0000:ForwDgrams ', 'GPRINT:ipForwDatagrams:LAST:%6.2lf%s','GPRINT:ipForwDatagrams:AVERAGE: %6.2lf%s','GPRINT:ipForwDatagrams:MAX: %6.2lf%s\n',
			'COMMENT:Packets/sec    Current   Average   Maximum\n'
		);
	}

}